package zy.dao.shop.want;

import java.util.List;
import java.util.Map;

import zy.dto.common.BarcodeImportDto;
import zy.dto.shop.want.ProductStorePriceDto;
import zy.entity.base.product.T_Base_Product;
import zy.entity.base.product.T_Base_Product_Shop_Price;
import zy.entity.shop.want.T_Shop_Want;
import zy.entity.shop.want.T_Shop_WantList;
import zy.entity.stock.data.T_Stock_DataBill;
import zy.entity.sys.user.T_Sys_User;

public interface WantDAO {
	Integer count(Map<String,Object> params);
	List<T_Shop_Want> list(Map<String,Object> params);
	T_Shop_Want load(Integer wt_id);
	T_Shop_Want load(String number,Integer companyid);
	T_Shop_Want check(String number,Integer companyid);
	List<T_Shop_WantList> detail_list_forcopy(List<Long> ids);
	List<T_Shop_WantList> detail_list_forsavetemp(String wt_number,Integer companyid);
	List<T_Shop_WantList> detail_list(Map<String, Object> params);
	List<T_Shop_WantList> detail_list_print(Map<String, Object> params);
	List<T_Shop_WantList> detail_sum(Map<String, Object> params);
	List<String> detail_szgcode(Map<String,Object> params);
	List<T_Shop_WantList> temp_list_forimport(Integer wt_type,Integer us_id,Integer companyid);
	List<T_Shop_WantList> temp_list_forsave(Integer wt_type,Integer us_id,Integer companyid);
	List<T_Shop_WantList> temp_list(Map<String, Object> params);
	List<T_Shop_WantList> temp_sum(Integer wt_type,Integer us_id,Integer companyid);
	List<String> temp_szgcode(Map<String,Object> params);
	Integer count_product(Map<String, Object> param);
	List<T_Base_Product> list_product(Map<String, Object> param);
	T_Base_Product load_product(String pd_code,String sp_code,Integer companyid);
	Map<String, Object> load_product_size(Map<String,Object> params);
	Map<String, Object> load_product_size_send(Map<String,Object> params);
	T_Shop_WantList temp_queryUnitPrice(String pd_code,Integer wt_type, Integer us_id, Integer companyid);
	T_Shop_WantList detail_queryUnitPrice(String pd_code, String wt_number, Integer companyid);
	T_Shop_WantList temp_loadBySubCode(String sub_code,Integer wt_type, Integer us_id, Integer companyid);
	T_Shop_WantList detail_loadBySubCode(String sub_code, String wt_number, Integer companyid);
	void temp_save(List<T_Shop_WantList> temps);
	void temp_save(T_Shop_WantList temp);
	void temp_update(List<T_Shop_WantList> temps);
	void temp_updateById(List<T_Shop_WantList> temps);
	void temp_update(T_Shop_WantList temp);
	void temp_updateprice(String pd_code, Double unitPrice, Integer wt_type, Integer us_id, Integer companyid);
	void temp_updateRemarkById(T_Shop_WantList temp);
	void temp_updateRemarkByPdCode(T_Shop_WantList temp);
	void temp_del(List<T_Shop_WantList> temps);
	void temp_del(Integer wtl_id);
	void temp_delByPiCode(T_Shop_WantList temp);
	void temp_clear(Integer wt_type,Integer us_id,Integer companyid);
	List<BarcodeImportDto> temp_listByImport(List<String> barCodes,String sp_code,Integer companyid);
	void detail_save(List<T_Shop_WantList> details);
	void detail_save(T_Shop_WantList detail);
	void detail_update(List<T_Shop_WantList> details);
	void detail_update(T_Shop_WantList detail);
	void detail_updateprice(T_Shop_WantList detail);
	void detail_automatch(String number,Integer companyid);
	void detail_del(List<T_Shop_WantList> temps);
	void detail_del(Integer wtl_id);
	void detail_updateprice(String pd_code, Double unitPrice, String wt_number, Integer companyid);
	void save(T_Shop_Want want,List<T_Shop_WantList> details,T_Sys_User user);
	void update(T_Shop_Want want,List<T_Shop_WantList> details);
	void updateApprove(T_Shop_Want want);
	void updateSend(T_Shop_Want want);
	List<T_Stock_DataBill> listStock(String number,String dp_code, Integer companyid);
	void updateReceive(T_Shop_Want want);
	List<ProductStorePriceDto> load_want_product_price(String wt_number,String shop_code,Integer companyid);
	void update_base_shopprice(List<T_Base_Product_Shop_Price> shopPrices_add,List<T_Base_Product_Shop_Price> shopPrices_update);
	void updateReject(T_Shop_Want want);
	void updateRejectConfirm(T_Shop_Want want);
	void del(String wt_number, Integer companyid);
	void deleteList(String wt_number, Integer companyid);
}
